package edu.mju.eduuser.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author: wyp
 * @Date: 2020/11/26 8:59
 */
@Component
public class ConstantGiteeUtils implements InitializingBean {
    @Value("${gitee.client_id}")
    private String client_id;

    @Value("${gitee.client_secret}")
    private String client_secret;

    @Value("${gitee.redirect_url}")
    private String redirect_url;

    public static String GITEE_CLIENT_ID;
    public static String GITEE_CLIENT_SECRET;
    public static String GITEE_REDIRECT_URL;

    @Override
    public void afterPropertiesSet() throws Exception {
        GITEE_CLIENT_ID = client_id;
        GITEE_CLIENT_SECRET = client_secret;
        GITEE_REDIRECT_URL = redirect_url;
    }
}
